package com.akaovi.sch.pojo;

/**
 * @author akaovi
 * @version 1.0
 * @description
 * @date 2022/11/7 14:40
 * @since 2022/11/7 14:40
 */
public class Guest extends Person implements PersonFunc{

    public Guest() {
    }

    public Guest(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.printf("外宾%s去酒店餐厅吃饭！\n", this.getName());
    }

    @Override
    public void sleep() {
        System.out.printf("外宾%s回酒店睡觉！\n", this.getName());
    }
}
